package com.superteam.mac.servlet;

import java.util.List;

import com.superteam.mac.mode.WorkShop;
import com.superteam.mac.service.BaseService;

public class WorkShopService extends BaseService {

	public int findTotalWorkShops()
	{
		return this.getWorkShopDAO().findTotalWorkShop();
	}
	
	@SuppressWarnings("unchecked")
	public List findAllWrokShop(int startIndex,int count)
	{
		return this.getWorkShopDAO().findAllWorkShop(startIndex, count);
	}
	public boolean deleteWorkShop(String code)
	{
		return this.getWorkShopDAO().dealWorkShop(code);
	}
	public boolean saveWorkShop(WorkShop work)
	{
		return this.getWorkShopDAO().addWorkShop(work);
	}
	public List<WorkShop> findWorkShopAndMachines()
	{
		return this.getWorkShopDAO().findWorkShopAndMachines();
	}
}
